<template>
    <div class="login">
        <div class="left"></div>
        <div class="right">
            <div class="title">
                <img src="../assets/image/logo.png" alt="" class="logo">
                <h2>智慧养老机构服务平台</h2>
            </div>
            <div class="form">
                <div class="name">
                    <img src="../assets/image/main.png" alt="">
                    <input type="text" placeholder="请输入用户名(admin)">
                </div>
                <div class="password">
                    <img src="../assets/image/pwd.png" alt="">
                    <input type="password" placeholder="请输入密码(123)">
                </div>
            </div>
            <div class="forget">
                <div class="remember">
                    <div></div>
                    <span>记住密码</span>
                </div>
                <a href="#">忘记密码?</a>
            </div>
            <div class="btn">登录</div>
            <div class="ft">
                <span class="login-style">其他登录方式</span>
                <a href="#">扫码登录</a>
                <span class="line">|</span>
                <a href="#">手机号登录</a>
            </div>
        </div>
    </div>
</template>

<script>
export default {

}
</script>

<style scoped>

.left{
    height: 100vh;
    background-image: url(../assets/image/bg.png) ;
    background-repeat: no-repeat;
    background-size: 60%;
    background-position: left center;    
}
.right {
    font-size: 14px;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: fixed;
     /* 水平居中 */
    right: 100px;
    top: 50%;
    transform: translateY(-50%);
    width: 380px;
    height: 469px;
    background: inherit;
    background-color: rgba(255, 255, 255, 1);
    border-radius: 3px;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.117647058823529);
}
.right a {
    text-decoration: none;
    color: #0468FF;
}
.title {
    display: flex;
    margin-top: 50px;
    justify-content: center;
}
.logo {
    width: 45px;
    height: 45px;
    margin-right: 10px;
}
.title h2 {
    font-size: 26px;
    color: #000000;
    text-align: center;
    font-weight: 700;
    line-height: 50px;
}
.name,.password {
    position: relative;
    margin-top: 40px;
    width: 300px;
    height: 37px;
    display: flex;
    align-items: center;
}
.name img,.password img {
    position: absolute;
    left: 10px;
    width: 16px;
    height: 16px;
}
.name input,.password input {
    width: 300px;
    height: 37px;
    padding: 2px 10px 2px 32px;
    border:1px solid rgb(153, 153, 153);
    border-radius: 5px;
}
.forget {
    margin-top: 40px;
    display: flex;
    font-size: 14px;
    width: 300px;
    justify-content: space-between;
    text-align: center;
}
.remember {
    display: flex;
    align-items: center;
}
.remember span {
    display: block;
    font-size: 14px;
    color: #333;
}
.remember div {
    margin-right: 5px;
    width: 18px;
    height: 18px;
    background: inherit;
    background-color: rgba(255, 255, 255, 1);
    box-sizing: border-box;
    border-width: 1px;
    border-style: solid;
    border-color: rgba(194, 194, 194, 1);
    border-radius: 3px;
}
.btn {
    width: 300px;
    height: 37px;
    background: inherit;
    color: #fff;
    text-align: center;
    line-height: 37px;
    border-radius: 5px;
    margin-top: 20px;
    background-color: rgba(4, 96, 255, 1);
}
.ft {
    margin-top: 30px;
}
.login-style {
    margin-right: 20px;
}
.line {
    margin: 0 5px;
    color: rgb(153, 153, 153);
}
</style>